home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C++ / Applications / Nuntius 1.2 / src / Nuntius / UTriangleControl.h < prev    next >
Encoding:
Text File  |  1994-02-20  |  670 b   |  27 lines  |  [TEXT/MPS ]

  1. // Copyright © 1992 Peter Speck, speck@dat.ruc.dk. All rights reserved.
  2. // UTriangleControl.h
  3.  
  4. #define __UTRIANGLECONTROL__
  5.  
  6. class TTriangleControl : public TControl
  7. {
  8.     public:
  9.         pascal void Hilite();
  10.         pascal void Draw(const VRect& area);
  11.         pascal void TrackMouse(TrackPhase aTrackPhase,
  12.                                    VPoint& anchorPoint, VPoint& previousPoint, VPoint& nextPoint,
  13.                                    Boolean mouseDidMove);
  14.  
  15.         Boolean IsExpanded();
  16.         void SetExpand(Boolean expand);
  17.         
  18.         TTriangleControl();
  19.         pascal void Initialize();
  20.         void ITriangleControl(TView *superView, VPoint location, Boolean expanded);
  21.         pascal void Free();
  22.     private:
  23.         Boolean fIsExpanded;
  24.         
  25.         void DoAnimation();
  26. };
  27.